/*
 * @Description: 路由
 * @Author: zheng yiliang
 * @Date: 2021-04-27 22:16:40
 * @LastEditTime: 2021-06-13 18:17:35
 * @LastEditors: zheng yiliang
 */

const routes = [
  {
    path: '/',
    alias: '/home',
    name: 'Home',
    component: () => import('../views/Home'),
    meta: {
      activeMenu: '/'
    }
  },
  {
    path: '/',
    redirect: 'article',
    component: () => import('@/layout'),
    children: [
      {
        path: 'article',
        alias: 'proxy',
        name: 'Article',
        component: () => import('../views/Article'),
        meta: {
          activeMenu: '/article',
          category: true,
          hotArticle: true,
          topArticle: true,
          recentVisitor: true
        }
      },
      {
        path: 'detail',
        name: 'Detail',
        component: () => import('../views/Detail'),
        meta: {
          activeMenu: '/article',
          category: true,
          hotArticle: true,
          topArticle: true,
          recentVisitor: true
        }
      },
      {
        path: 'archives',
        name: 'Archives',
        component: () => import('../views/Archives'),
        meta: {
          activeMenu: '/archives'
        }
      },
      {
        path: 'about',
        name: 'About',
        component: () => import('../views/About'),
        meta: {
          activeMenu: '/about',
          smallTitle: {
            title: '关于我',
            desc: '少年自有少年狂，心似骄阳万丈光。'
          }
        }
      },
      {
        path: 'message',
        name: 'Message',
        component: () => import('../views/Message'),
        meta: {
          activeMenu: '/message'
        }
      },
      {
        path: 'links',
        name: 'Links',
        component: () => import('../views/Links'),
        meta: {
          activeMenu: '/links',
          smallTitle: {
            title: '友情链接',
            desc: '少年自有少年狂，心似骄阳万丈光。'
          }
        }

      },
      {
        path: 'notice',
        name: 'Notice',
        component: () => import('../views/Notice'),
        meta: {
          activeMenu: '/notice'
        }
      }
    ]
  }

  // {
  //   path: '/article',
  //   name: 'Article',
  //   component: () => import('../views/Article'),
  //   meta: {
  //     activeMenu: '/article'
  //   }
  // },
  // {
  //   path: '/detail',
  //   name: 'Detail',
  //   component: () => import('../views/Detail'),
  //   meta: {
  //     activeMenu: '/article'
  //   }
  // },
  // {
  //   path: '/archives',
  //   name: 'Archives',
  //   component: () => import('../views/Archives'),
  //   meta: {
  //     activeMenu: '/archives'
  //   }
  // },

]
export default routes
